package com.triplelink.entity;

import java.util.ArrayList;
import java.util.List;

import resource.UrisClasses;
import resource.UrisProperties;

import com.triplelink.annotations.ClassType;
import com.triplelink.annotations.DatatypeProperty;
import com.triplelink.annotations.Id;
import com.triplelink.annotations.Property;
import com.triplelink.enums.Datatype;

@ClassType(type = UrisClasses.STRING_LIST)
public class StringListEntity
{
	@Id
	private String id;

	@DatatypeProperty(range = Datatype.STRING)
	@Property(uri = UrisProperties.LIST)
	private List<String> list;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<String> getList() {
		
		if (list == null)
			list = new ArrayList<String>();
		
		return list;
	}

	public void setList(List<String> list) {
		this.list = list;
	}
}